package com.xxh.dasongapp.common.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.xxh.dasongapp.common.entity.common.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("sys_resource")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value="资源",description="资源")
public class Resource extends BaseEntity<Resource> implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "资源id")
    @TableId(type = IdType.ASSIGN_ID)
    private String id;

    @ApiModelProperty(value = "资源名")
    private String name;

    @ApiModelProperty(value = "资源类型")
    private String type;


    @ApiModelProperty(value = "资源介绍")
    private String introduce;

    @ApiModelProperty(value = "资源照片名")
    private String imgFile;

    @ApiModelProperty(value = "资源下载地址")
    private String downloadUrl;

    @ApiModelProperty(value = "资源提取码")
    private String downloadPassword;

    @ApiModelProperty(value = "资源介绍地址")
    private String introduceUrl;

    @ApiModelProperty(value = "1：隐藏,0:不隐藏")
    private Integer isHide;

}
